package com.baozheyangken.ai_learn.service;

import com.baozheyangken.ai_learn.pojo.entity.Course;
import com.baozheyangken.ai_learn.pojo.vo.CourseVO;

import java.util.List;
import java.util.Optional;

public interface CourseService {
    Course createCourse(CourseVO courseVO);

    List<Course> getAllCourses();

    Course getCourseById(Integer id);

    Course updateCourse(Integer id, CourseVO courseVO);

    void deleteCourse(Integer id);

    List<Course> getCoursesBySubjectAndGrade(String subject, String grade);

    List<Course> searchCourses(String keyword);
}
